import React from 'react';
/* 引入图标 */
import { UserOutlined, LaptopOutlined, NotificationOutlined, BellOutlined, CommentOutlined } from '@ant-design/icons'

/* 二级路由 */

/* 试题管理 */
import AddQuestionsPage from '../views/home/questions/AddQuestions';
import ClassifyQuestionsPage from '../views/home/questions/ClassifyQuestions';
import ViewQuestionPage from '../views/home/questions/ViewQuestions';
import QuestionDetailsPage from '../views/home/questions/QuestionDetails';

/* 用户管理 */
import AddConsumerPage from  '../views/home/consumer/AddConsumer';
import ShowConsumerPage from '../views/home/consumer/ShowConsumer';

/* 考试管理 */
import AddPaperPage from '../views/home/papers/AddPaper';
import PaperListPage from '../views/home/papers/PaperList';
import PaperDetailPage from '../views/home/papers/PaperDetail';

/* 班级管理 */
import ClassManagerPage from '../views/home/manager/ClassManager';
import RoomManagerPage from '../views/home/manager/RoomManager';
import StudentManagerPage from '../views/home/manager/StudentManager';

/* 阅卷管理 */
import MarkingDetailPage from '../views/home/marking/MarkingDetail';
import MarkingListPage from '../views/home/marking/MarkingList';
import MarkingStudentListPage from '../views/home/marking/MarkingStudentList';

/* 导航菜单 */
const menus = [{
    /* 标题 */
    name: 'menu.question',
    meta: {
        icon: UserOutlined,
        iconColor:'#00FF00',
        title: '',
        show: true
    },
    children: [
        {
            path: '/home/addQuestions',
            name: 'menu.question.addQuestion',
            meta: {
                title: 'menu.question.addQuestion',
                show: true,
                component: AddQuestionsPage,
                view_id: 'home-addQuestions'
            }
        },
        {
            path: '/home/classifyQuestions',
            name: 'menu.question.classifyQuestion',
            meta: {
                title: 'menu.question.classifyQuestion',
                show: true,
                component: ClassifyQuestionsPage,
                view_id: 'home-questionsType'
            }
        },
        {
            path: '/home/viewQuestion',
            name: 'menu.question.viewQuestion',
            meta: {
                title: 'menu.question.viewQuestion',
                show: true,
                component: ViewQuestionPage,
                view_id: 'home-watchQuestions'
            }
        },
        {
            path: '/home/questionDetails',
            name: 'menu.question.questionDetail',
            meta: {
                title: 'menu.question.questionDetail',
                show: false,
                component: QuestionDetailsPage,
                view_id: 'home-questionsDetail'
            }
        }
    ]
},
{
    name: 'menu.consumer',
    meta: {
        icon: LaptopOutlined,
        iconColor:'#FF0099',
        title: '',
        show: true
    },
    children: [
        {
            path: '/home/addConsumer',
            name: 'menu.consumerManage.addConsumer',
            meta: {
                title: 'menu.consumerManage.addConsumer',
                show: true,
                component: AddConsumerPage,
                view_id: "home-addUser"
            }
        },
        {
            path: '/home/showConsumer',
            name: 'menu.consumerManage.showConsumer',
            meta: {
                title: 'menu.consumerManage.showConsumer',
                show: true,
                component: ShowConsumerPage,
                view_id: "1home-showUser"
            }
        }
    ]
},
{
    name: 'menu.papers',
    meta: {
        icon: NotificationOutlined,
        iconColor:'#0033FF',
        title: '',
        show: true
    },
    children: [
        {
            path: '/home/addPaper',
            name: 'menu.papers.addPaper',
            meta: {
                title: 'menu.papers.addPaper',
                show: true,
                component: AddPaperPage,
                view_id: "home-addExam"
            }
        },
        {
            path: '/home/paperList',
            name: 'menu.papers.paperList',
            meta: {
                title: 'menu.papers.paperList',
                show: true,
                component: PaperListPage,
                view_id: "home-examList"
            }
        },
        {
            path: '/home/paperDetail',
            name: 'menu.papers.paperDetail',
            meta: {
                title: 'menu.papers.paperDetail',
                show: false,
                component: PaperDetailPage,
                view_id: "home-examDetail"
            }
        }
    ]
},
{
    name: 'menu.manager',
    meta: {
        icon: BellOutlined,
        iconColor:'#66FFFF',
        title: '',
        show: true
    },
    children: [
        {
            path: '/home/classManager',
            name: 'menu.manager.classManager',
            meta: {
                title: 'menu.manager.classManager',
                show: true,
                component: ClassManagerPage,
                view_id: "home-grade"
            }
        },
        {
            path: '/home/roomManager',
            name: 'menu.manager.roomManager',
            meta: {
                title: 'menu.manager.roomManager',
                show: true,
                component: RoomManagerPage,
                view_id: "home-room"
            }
        },
        {
            path: '/home/studentManager',
            name: 'menu.manager.studentManager',
            meta: {
                title: 'menu.manager.studentManager',
                show: true,
                component: StudentManagerPage,
                view_id: "home-student"
            }
        }
    ]
},
{
    name: 'menu.marking',
    meta: {
        icon: CommentOutlined,
        iconColor:'#FF0000',
        title: '',
        show: true
    },
    children: [
        {
            path: '/home/markingDetail',
            name: 'menu.marking.markingDetail',
            meta: {
                title: 'menu.marking.markingDetai',
                show: false,
                component: MarkingDetailPage,
                view_id: "home-examinationPapers"
            }
        },
        {
            path: '/home/markingList',
            name: 'menu.marking.markingList',
            meta: {
                title: 'menu.marking.markingList',
                show: true,
                component: MarkingListPage,
                view_id: "home-examPaperClassList"
            }
        },
        {
            path: '/home/markingStudentList',
            name: 'menu.marking.markingStudentList',
            meta: {
                title: 'menu.marking.markingStudentList',
                show: false,
                component: MarkingStudentListPage,
                view_id: "home-examPaperClassmate"
            }
        }
    ]
}
];

export default menus;